
const superagent = require('superagent');

module.exports = router => {

    /** 获取可以结算的订单 */
    router.post('/api/settlement/entry', require('./fn/settlementEntry'));

    /** 创建结算单 */
    router.post('/api/settlement/create', require('./fn/settlementCreate'));

    /** 开票 */
    router.post('/api/settlement/billing/:id', require('./fn/billing'));

    /** 结算单导出 */
    router.post('/api/settlement/exportExcl', require('./fn/exportExcl'));

    /** 获取结算单 */
    router.post('/api/settlement/list', require('./fn/settlementList'));

    /** 获取结算单(根据id查询) */
    router.post('/api/settlement/get/:id', require('./fn/getSettlement'));

    /** 获取结算单-关联订单 */
    router.post('/api/settlement/order/:id', require('./fn/settlementOrder'));

    /** 更新结算单 */
    router.post('/api/settlement/update/:id', require('./fn/settlementUpdate'));

    /** 撤销结算单 */
    router.post('/api/settlement/reject/:id', require('./fn/settlementReject'));

    /** 审核结算单 */
    router.post('/api/settlement/examine/:id', require('./fn/settlementExamine'));

    /** 删除结算单 */
    router.post('/api/settlement/delete/:id', require('./fn/settlementDelete'));

    /** 结算单回款 */
    router.post('/api/settlement/moneyback/:id', require('./fn/settlementMoneyBack'));
}